package chai.ning.polym;

// 抽象类
public abstract class Shape {
	
	private String type ;
	protected double area ;

	public Shape(String type) {
		super();
		this.type = type;
	}

	// 抽象方法
	public abstract void calculate() ;
	
	@Override
	public String toString() {
		return "Shape [type=" + type + ", area=" + area + "]";
	}

}
